package cn.stylefeng.guns.modular.business.frequency.syssite.model.param;

import cn.stylefeng.guns.core.pojo.base.param.BaseParam;

import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * sys_site
 *
 * @author yujie
 * @date 2023/05/09 17:17
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class SysSiteParam extends BaseParam {

    /**
     * id
     */
    @NotNull(message = "id不能为空",groups = {edit.class})
    private Long id;

    /**
     * 新建时间
     */
    private Date createTime;

    /**
     * create_user
     */
    private Long createUser;

    /**
     * update_time
     */
    private Date updateTime;

    /**
     * update_user
     */
    private Long updateUser;

    /**
     * 网点名称
     */
    @NotNull(message = "网点名称不能为空",groups = {add.class,edit.class})
    private String name;

    /**
     * 电话
     */
    @NotNull(message = "电话不能为空",groups = {add.class,edit.class})
    private String phone;

    /**
     * 联系人
     */
    @NotNull(message = "联系人不能为空",groups = {add.class,edit.class})
    private String linkman;

    /**
     * 地区code
     */
    @NotNull(message = "地区code不能为空",groups = {add.class,edit.class})
    private String regionCode;

    /**
     * 详细地址
     */
    @NotNull(message = "详细地址不能为空",groups = {add.class,edit.class})
    private String address;

    /**
     * 签收人
     */
    @NotNull(message = "签收人不能为空",groups = {add.class,edit.class})
    private String signName;

    /**
     * 签收电话
     */
    @NotNull(message = "签收电话不能为空",groups = {add.class,edit.class})
    private String signPhone;

    /**
     * 1.删除 0.未删除
     */
    @NotNull(message = "1.删除 0.未删除不能为空",groups = {add.class,edit.class})
    private Integer hasDelete;

}
